%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TITLE: "How Soft Propaganda Persuades"
JOURNAL:	Comparative Political Studies 
AUTHORS:	Daniel Mattingly (Yale); Elaine Yao (Princeton)
CORRESPONDENCE: 	Elaine Yao <eyao@princeton.edu>
DATE: July 18, 2021
REQUIRED SOFTWARE: R (version 3.6.1 or above)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% OVERVIEW			
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

This replication archive contains anonymized raw survey data and code 
files which clean the data, performs the analyses, and creates the
figures in the paper "How Soft Propaganda Persuades". 

General code structure: script files prefixed with 1_ create the clean
dataset that all analyses are performed on, so they MUST be run before
any of the other scripts, but the other scripts (prefixed 2_, 3_, 4_) 
may be run in any order.     

- Scripts prefixed 2_ create figures displayed in the main text, as well 
as some of the figures in the Appendix (details below).
- Scripts prefixed 3_ and 4_ create other figures, tables, and analyses 
contained in the appendices.  



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% REPLICATION SCRIPTS %%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%% 1. Scripts for loading and cleaning data %%%%%

1_round1_loaddata.R 
	Loads raw survey data from the Round 1 study, cleans, and outputs
	Round_1_clean.Rdata. Once this code is run, codes 2_, 3_, and 4_ 
	can be run in any order (they are independent). 

1_round2_loaddata.R
	Loads raw (pre-merged) survey data from the Round 2 study, cleans, 
	and outputs Round_2_clean.RData Once this code is run, 
	codes 2_, 3_, and 4_ can be run in any order (they are independent). 
	Note about pre-merging can be found below. 



%%%%% 2. Scripts for generating main text figures %%%%% 

% note: these scripts also generate some of the figures in Appendix C,
% as is clearly noted.

2_round1_figs.R
	Loads cleaned data from 1_round1_loaddata.R and creates 
	- main text figures 1,2,4,5, 
	- appendix figures A5, A6, A10 (Appendix C)

2_round2_figs.R 
	Loads cleaned data from 1_round2_Loaddata.R and creates
	- main text figures 1,2,3,5
	- appendix figures A4, A5, A7, A8, A9, A11 (Appendix C) 



%%%%% 3, 4, 5. Scripts for generating appendix materials %%%%%

3_round1_appendices.R
	Loads cleaned data from 1_round1_loaddata.R and performs 
	- balance tests (Appendix B)
	- regressions for main outcomes (Appendix E)
	- multiple comparisons testing (Appendix G)
	- marginal effects plots (Appendix C)
	- differential attrition analysis (Appendix F)

3_round2_appendices.R 
	Loads cleaned data from 1_round2_loaddata.R and performs
	- balance tests (Appendix B)
	- regressions for main outcomes (Appendix E)
	- multiple comparisons testing (Appendix G) 
	- marginal effects plots (Appendix C)

4_round1_mediation.R
	Loads cleaned data from 1_round1_loaddata.R and performs 
	mediation analysis (Appendix D)

4_round2_mediation.R
	Loads cleaned data from 1_round2_loaddata.R and performs 
	mediation analysis (Appendix D)

5_bothrounds_appendixA.R
	Loads cleaned data from both rounds and creates the figures
	in Appendix A (key pre-registered outcomes)


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% INPUT DATASETS %%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Round_1_raw.Rdata
	Raw survey data from Round 1 study, with identifying information 
	removed. 

Round_2_raw.Rdata 
	Raw survey data from Round 2 and 3 studies, with identifying 
	information removed. NOTE: we have pre-merged the round 2 and 
	round 3 datasets on identifying information and then removed the
	identifying information.  

